<!-- 
<template>
  <div v-if="data">
    <div v-for="(item, index) in data.hotComments" :key="index">
      {{ item.content }}
    </div>
  </div>
</template>

<script>
import { getComment } from "../apis/observable/profile";
export default {
  data() {
    return {
      data: null,
    };
  },
  components: {},
  computed: {},
  methods: {},
  mounted() {
    getComment.then((res) => (this.data = res));
    this.$store.commit(
      "getListener",
      (res) => {
        console.log(res);
      },
      (err) => {
        console.log(err);
      }
    );
  },
};
</script>
<style lang="stylus" rel="stylesheet/stylus" scoped></style>
 -->
<!--  -->
<template>
  <div></div>
</template>

<script>
import { getComments, getHeroList } from "../apis/observable/profile";

export default {
  data() {
    return {};
  },

  components: {},

  computed: {},

  methods: {},
  mounted() {
    getComments().subscribe((data) => console.log(data, "在Home.vue"));
    getHeroList().subscribe((data) =>
      console.log(data, "在Home.vue, 中的heroList")
    );
  },
};
</script>
<style lang="stylus" rel="stylesheet/stylus" scoped></style>
